package com.yxinsur.imc.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yxinsur.imc.common.core.domain.BaseImcEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseEntity;

/**
 * 供应商库对象 imc_repo_supplier
 * 
 * @author imc
 * @date 2021-03-25
 */
public class ImcRepoSupplier extends BaseImcEntity
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 保险公司名称 */
    @Excel(name = "保险公司名称")
    private String supplierName;

    /** 保险公司简称 */
    @Excel(name = "保险公司简称")
    private String supplierShortName;

    /** 供应商默认代码-全局唯一 */
    @Excel(name = "供应商默认代码-全局唯一")
    private String supplierCode;

    /** 保险公司简称缩写代码 */
    @Excel(name = "保险公司简称缩写代码")
    private String supplierPinyin;

    /** 险企默认犹豫期(天) */
    @Excel(name = "险企默认犹豫期(天)")
    private Long coolingOffPeriod;

    /** 险企默认宽限期-默认60天 */
    @Excel(name = "险企默认宽限期-默认60天")
    private Long gracePeriod;

    /** 租户id,一个租户id唯一对一个机构id（默认机构id为根节点id暨法人机构） */
    @Excel(name = "租户id,一个租户id唯一对一个机构id", readConverterExp = "默=认机构id为根节点id暨法人机构")
    private Long tenantId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }
    public void setSupplierShortName(String supplierShortName) 
    {
        this.supplierShortName = supplierShortName;
    }

    public String getSupplierShortName() 
    {
        return supplierShortName;
    }
    public void setSupplierCode(String supplierCode) 
    {
        this.supplierCode = supplierCode;
    }

    public String getSupplierCode() 
    {
        return supplierCode;
    }
    public void setSupplierPinyin(String supplierPinyin) 
    {
        this.supplierPinyin = supplierPinyin;
    }

    public String getSupplierPinyin() 
    {
        return supplierPinyin;
    }
    public void setCoolingOffPeriod(Long coolingOffPeriod) 
    {
        this.coolingOffPeriod = coolingOffPeriod;
    }

    public Long getCoolingOffPeriod() 
    {
        return coolingOffPeriod;
    }
    public void setGracePeriod(Long gracePeriod) 
    {
        this.gracePeriod = gracePeriod;
    }

    public Long getGracePeriod() 
    {
        return gracePeriod;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId()
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("supplierName", getSupplierName())
            .append("supplierShortName", getSupplierShortName())
            .append("supplierCode", getSupplierCode())
            .append("supplierPinyin", getSupplierPinyin())
            .append("coolingOffPeriod", getCoolingOffPeriod())
            .append("gracePeriod", getGracePeriod())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .append("createId", getCreateId())
            .append("tenantId", getTenantId())
            .toString();
    }
}
